﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceMaintainGIS.Model.User
{
    /// <summary>
    /// 用户登录信息
    /// </summary>
    public class UserResponse
    {
        /// <summary>
        /// 用户名称
        /// </summary>
        public int UserID { get; set; }
        /// <summary>
        /// 权限ID
        /// </summary>
        public int? RoleId { get; set; }
        /// <summary>
        /// 登录名
        /// </summary>
        public string AccountName { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 待处理数量
        /// </summary>
        public int PendingNumber { get; set; }
        /// <summary>
        /// 当前用户的菜单
        /// </summary>
        public List<MenuResponse> MenuList { get; set; }
    }

    /// <summary>
    /// 用户登陆后返回的菜单操作权限
    /// </summary>
    public class MenuResponse
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        public int? MenuId { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }

        /// <summary>
        /// 菜单路径
        /// </summary>
        public string MenuPath{ get; set; }

        /// <summary>
        /// 权限ID
        /// </summary>
        public int? RoleId { get; set; }
        ///// <summary>
        ///// 菜单类型
        ///// </summary>
        //public int? MenuType { get; set; }
        /// <summary>
        /// 当前菜单的子菜单
        /// </summary>
        public List<MenuResponse> MenuSeedList { get; set; }
        /// <summary>
        /// 当前菜单的按钮集合
        /// </summary>
        public List<MenuButtonResponse> MenuButtonList { get; set; }
    }

    /// <summary>
    /// 菜单下按钮信息
    /// </summary>
    public class MenuButtonResponse
    {
        /// <summary>
        /// 按钮ID
        /// </summary>
        public int? ButtonId { get; set; }

        /// <summary>
        /// 按钮名称
        /// </summary>
        public string ButtonName { get; set; }


        /// <summary>
        /// 按钮类型 1 添加 2 编辑 3 删除
        /// </summary>
        public int MenuType { get; set; }

    }
}
